home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1677 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  854 b 

  1. Path: allentown03.voicenet.com!user
  2. From: Ed@eSquare.com (Ed McAdams)
  3. Newsgroups: comp.lang.c
  4. Subject: Overwriting file information?
  5. Date: Tue, 16 Jan 1996 01:29:18 -0500
  6. Organization: Voicenet - Internet Access - (215)674-9290
  7. Message-ID: <Ed-1601960129180001@allentown03.voicenet.com>
  8. NNTP-Posting-Host: allentown03.voicenet.com
  9.  
  10. I need to write some code that will open an existing file, find a string and then update the string's counter. Nothing here is a problem except that I don't know how to overwrite a decimal integer instead of appending more information to the file?
  11.  
  12. Thanks & if anyone reading this is wondering how I am doing the rest of the stuff, just throw some questions at me & I'd be happy to help a fellow newbie.
  13.  
  14. Ed.
  15.  
  16. ---------
  17. example:
  18. ---------
  19. Changing a file containing:
  20.  
  21. duck 15
  22. fred 96
  23. bob 342
  24.  
  25. to:
  26.  
  27. duck 15
  28. fred 97
  29. bob 342
  30.